package org.csu.mypetstore.persistence;

import org.apache.ibatis.annotations.Param;
import org.csu.mypetstore.domain.Product;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface ProductMapper {

    List<Product> getProductListByCategory(String categoryId);
    Product getProduct(String productId);
    List<Product> searchProductList(String productId);
    void deleteProduct(@Param("productId") String productId);
    void insertProduct(@Param("productid") String productid,@Param("category") String category,@Param("name") String name,@Param("descn") String descn);

}
